package ee.ut.aa.neuraltic.neural;

import java.util.Arrays;

import org.apache.log4j.Logger;

public class InputLayer extends Layer {

	private static Logger log = Logger.getLogger( InputLayer.class );

	public InputLayer( Layer nextLayer ) {

		super( nextLayer );
		initNeurons( 9 );
	}

	public void feedInput( double[] values ) {

		log.debug( "Feeding input layer with values=" + Arrays.toString( values ) );

		int length = values.length;

		for( int i = 0; i < length; i++ ) {

			getNeurons().get( i ).setValue( values[i] );
		}
	}

	@Override
	public void initFeedForward() {
		log.debug( "Initializing input layer feed-forward." );
		super.initFeedForward();
	}
}
